const path = require('path');
const VueLoaderPlugin = require('vue-loader/lib/plugin');
module.exports = {
    entry:path.join(__dirname,'./src/index.js'),
    output:{
        path:path.join(__dirname,'./dist'),
        filename:'vue-toast-demo.js'
    },
    plugins:[
        new VueLoaderPlugin()
    ],
    module:{
        rules:[
            {
                test:/\.vue$/,
                loader:'vue-loader',
                exclude:[
                    path.join(__dirname,'./node_modules')
                ],
            },
            {test:/\.css$/,use:['style-loader','css-loader']},//css
            {test:/\.less$/,use:['style-loader','css-loader','less-loader']},//less
            {test:/\.scss$/,use:['style-loader','css-loader','sass-loader']},//sass
            {
                test:/\.js$/,
                loader:'babel-loader',
                exclude:[
                    path.join(__dirname,'./node_modules')
                ]
            }
        ]
    }
}